﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using Goldlight.Mvvm.Base.Command;

namespace Goldlight.SampleApplication.Model
{
    public class CommandModel
    {
        private string _label;
        private ICommand _command;

        public CommandModel(string label, Action command)
        {
            _label = label;
            _command = new RelayCommand(command);
        }

        public string Label
        {
            get { return _label; }
            set { _label = value; }
        }
        public ICommand Command
        {
            get { return _command; }
            set { _command = value; }
        }
    }
}
